package com.ruoyi.asms.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ruoyi.asms.domain.AsmsFaultAssetReason;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * 资产故障原因Mapper接口
 * 
 * @author yfkj
 * @date 2021-10-21
 */@Mapper
public interface AsmsFaultAssetReasonMapper extends BaseMapper<AsmsFaultAssetReason>
{
    /**
     * 查询资产故障原因
     * 
     * @param faultAssetReasonId 资产故障原因主键
     * @return 资产故障原因
     */
    public AsmsFaultAssetReason selectAsmsFaultAssetReasonByFaultAssetReasonId(Long faultAssetReasonId);

    /**
     * 查询资产故障原因列表
     * 
     * @param asmsFaultAssetReason 资产故障原因
     * @return 资产故障原因集合
     */
    public List<AsmsFaultAssetReason> selectAsmsFaultAssetReasonList(AsmsFaultAssetReason asmsFaultAssetReason);

    /**
     * 新增资产故障原因
     * 
     * @param asmsFaultAssetReason 资产故障原因
     * @return 结果
     */
    public int insertAsmsFaultAssetReason(AsmsFaultAssetReason asmsFaultAssetReason);

    /**
     * 修改资产故障原因
     * 
     * @param asmsFaultAssetReason 资产故障原因
     * @return 结果
     */
    public int updateAsmsFaultAssetReason(AsmsFaultAssetReason asmsFaultAssetReason);

    /**
     * 删除资产故障原因
     * 
     * @param faultAssetReasonId 资产故障原因主键
     * @return 结果
     */
    public int deleteAsmsFaultAssetReasonByFaultAssetReasonId(Long faultAssetReasonId);

    /**
     * 批量删除资产故障原因
     * 
     * @param faultAssetReasonIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteAsmsFaultAssetReasonByFaultAssetReasonIds(Long[] faultAssetReasonIds);
}
